package com.ruoyi.app.controller.common.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.util.Map;

@Data
public class SmsBO {
    @NotBlank(message = "参数缺失")
    private String flag;
    @NotBlank(message = "手机号缺失")
    @Pattern(regexp="/^[1]([3-9])[0-9]{9}$/",message = "请输入正确的手机号")
    private String phone;
    private String code;
    private Map<String,Object> params;
}
